addResultsToIntent
open fun addResultsToIntent(@NonNull remoteInputs: Array<RemoteInput>, @NonNull intent: Intent, @NonNull results: Bundle)(source)
Populate an intent object with the results gathered from remote input. This method should only be called by remote input collection services when sending results to a pending intent.
Parameters
remoteInputs
The remote inputs for which results are being provided
intent
The intent to add remote inputs to. The android.content.ClipData field of the intent will be modified to contain the results.
results
A bundle holding the remote input results. This bundle should be populated with keys matching the result keys specified in remoteInputs
with values being the result per key.